﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BLL.BusinessRules;

namespace BLL
{
    public class SYS_GROUP_COMM : BusinessObject
    {
        public int GroupID { get; set; }
        public int FunctionID { get; set; }
        public int CommandID { get; set; }

        public List<SYS_FUNC_COMM> lstFun_Cmm = new List<SYS_FUNC_COMM>();
        public List<SYS_GROUP> lstGroup = new List<SYS_GROUP>();

        public SYS_GROUP_COMM()
        {
            AddRule(new ValidateRequired("GroupID"));
            AddRule(new ValidateRequired("FunctionID"));
            AddRule(new ValidateRequired("CommandID"));
        }

        public SYS_GROUP_COMM(int groupID, int functionID, int commandID)
            : this()
        {
            GroupID = groupID;
            FunctionID = functionID;
            CommandID = commandID;
        }
    }
}
